<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://unpkg.com/vue@next"></script>
  <style>
  </style>
</head>
<body>
  <div id="app">
    <h3>Tooltips with Vue 3 Teleport</h3>
    <div id="parent">
    </div>
    <base-component></base-component>
  </div>

  <script>
    const app = Vue.createApp({
      
    })
    
    app.component('base-component', {
      template: `
      <div>
        <h2>在同一目标上使用多个teleport</h2>
        <teleport to="#parent">
          <div>teleport 1</div>
        </teleport>
        <teleport to="#parent">
          <div>teleport 2</div>
        </teleport>
      </div>
      `
    })

    app.mount('#app')
  </script>
</body>
</html>